<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    <channel>
        <title>Global Internet Business Solutions ~ GIBS</title> 
        <link>https://gibs.com</link> 
        <description>RSS feeds for Global Internet Business Solutions ~ GIBS</description> 
        <ttl>60</ttl> <item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/326/Estimated_demand_for_QR_Code_use_in_2025_and_the_future#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=326</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=326&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Estimated demand for QR Code use in 2025 and the future</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/326/Estimated_demand_for_QR_Code_use_in_2025_and_the_future</link> 
    <description>It&amp;#39;s estimated that by 2025, over 100 million smartphone users in the US will be scanning QR codes. This indicates a strong and growing demand for QR code use.

This growth is driven by several factors:


 Increased smartphone adoption: As more people own smartphones, the potential user base for QR codes expands.
 Integration with mobile payments: QR codes are increasingly used for mobile payments, particularly in developing regions, driving their adoption. Juniper Research predicts that global spending using QR code payments will reach over $3 trillion by 2025.
 Versatility and convenience: QR codes offer a convenient way to access information, make payments, check in for events, and more. This versatility contributes to their widespread use across various industries.
 Omnichannel experiences: Businesses are increasingly using QR codes to connect online and offline experiences, creating seamless omnichannel journeys for customers.


Overall, the demand for QR code use is expected to remain strong in 2025 and beyond, driven by technological advancements, increasing smartphone penetration, and the growing need for convenient and versatile solutions in various sectors.

Sample our QR Code Maker DNN app.
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Tue, 07 Jan 2025 16:37:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:326</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/325/Get_DNN_User_CustomProperty_Profile_Data#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=325</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=325&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Get DNN User CustomProperty Profile Data</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/325/Get_DNN_User_CustomProperty_Profile_Data</link> 
    <description>&amp;nbsp;

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private string GetUserProfileString(string CustomProperty, int UserID)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UserInfo oUserInfo = UserController.GetUserById(PortalSettings.PortalId, UserID);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string sCustomProperty = oUserInfo.Profile.GetPropertyValue(CustomProperty);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return sCustomProperty;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Mon, 06 Jan 2025 15:51:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:325</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/324/Split_an_Address_into_Number_and_Street#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=324</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=324&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Split an Address into Number and Street</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/324/Split_an_Address_into_Number_and_Street</link> 
    <description>
You can split an address string like &amp;quot;120 old Freemans Way&amp;quot; into the house number and street name in C# using several approaches.&amp;nbsp;

Use Regex.Match (Recommended for robustness):

This method uses regular expressions to find the first sequence of digits at the beginning of the string. This is generally the most robust approach as it handles variations in spacing and potential non-numeric characters after the house number.



using System;
using System.Text.RegularExpressions;

public class AddressSplitter
{
&amp;nbsp; &amp;nbsp; public static (string HouseNumber, string StreetName) SplitAddress(string address)
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (string.IsNullOrEmpty(address))
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (&amp;quot;&amp;quot;, &amp;quot;&amp;quot;); // Or throw an exception if appropriate
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Match match = Regex.Match(address, @&amp;quot;^(\d+)\b\s*(.*)&amp;quot;);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (match.Success)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string houseNumber = match.Groups[1].Value;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string streetName = match.Groups[2].Value.Trim(); // Trim extra whitespace
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (houseNumber, streetName);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (&amp;quot;&amp;quot;, address.Trim()); // Handle cases where no house number is found
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }

&amp;nbsp; &amp;nbsp; public static void Main(string[] args)
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string address = &amp;quot;120 old Freemans Way&amp;quot;;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (string houseNumber, string streetName) = SplitAddress(address);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;House Number: {houseNumber}&amp;quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;Street Name: {streetName}&amp;quot;);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; address = &amp;quot;120A old Freemans Way&amp;quot;; //Handles letters after number
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (houseNumber, streetName) = SplitAddress(address);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;House Number: {houseNumber}&amp;quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;Street Name: {streetName}&amp;quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; address = &amp;quot;old Freemans Way&amp;quot;; //Handles no number
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (houseNumber, streetName) = SplitAddress(address);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;House Number: {houseNumber}&amp;quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;Street Name: {streetName}&amp;quot;);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; address = &amp;quot; 120 old Freemans Way&amp;quot;; //Handles leading spaces
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (houseNumber, streetName) = SplitAddress(address);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;House Number: {houseNumber}&amp;quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine($&amp;quot;Street Name: {streetName}&amp;quot;);
&amp;nbsp; &amp;nbsp; }
}

</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Fri, 03 Jan 2025 17:24:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:324</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/3/Gridview_RowDataBound_Access_Data_Values#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=3</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=3&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Gridview RowDataBound Access Data Values</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/3/Gridview_RowDataBound_Access_Data_Values</link> 
    <description>protected void GridViewOrders_RowDataBound(object sender, GridViewRowEventArgs e)
{
&amp;nbsp; &amp;nbsp; if (e.Row.RowType == DataControlRowType.DataRow)
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LinkButton sndTextButton = (LinkButton)e.Row.FindControl(&amp;quot;LinkButtonSendText&amp;quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int orderStatusCode = Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, &amp;quot;OrderStatusCode&amp;quot;));
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var cellphone = DataBinder.Eval(e.Row.DataItem, &amp;quot;ClientCellPhone&amp;quot;);


&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (orderStatusCode == 3 &amp;amp;&amp;amp; cellphone.ToString().Length &amp;gt; 10)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sndTextButton.Visible = true;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }
}
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Fri, 24 May 2024 12:57:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:3</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/21/DNN_Get_User_DisplayName#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=21</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=21&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN Get User DisplayName</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/21/DNN_Get_User_DisplayName</link> 
    <description>private string GetDisplayName(int PortalId, int UserId)
{
&amp;nbsp;&amp;nbsp; &amp;nbsp;string UserDisplayName = &amp;quot;&amp;quot;;
&amp;nbsp;&amp;nbsp; &amp;nbsp;DotNetNuke.Entities.Users.UserInfo userInfo = DotNetNuke.Entities.Users.UserController.GetUserById(PortalId, UserId);
&amp;nbsp;&amp;nbsp; &amp;nbsp;if (userInfo != null)
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;UserDisplayName = userInfo.DisplayName;
&amp;nbsp;&amp;nbsp; &amp;nbsp;return UserDisplayName;
}
&amp;nbsp;
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 23 Jan 2020 12:59:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:21</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/23/Get_DNN_User_Roles_for_Dropdown_List#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=23</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=23&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Get DNN User Roles for Dropdown List </title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/23/Get_DNN_User_Roles_for_Dropdown_List</link> 
    <description>public void GetRoles()
{
&amp;nbsp;DotNetNuke.Security.Roles.RoleController rc = new DotNetNuke.Security.Roles.RoleController();

&amp;nbsp;var myRoles = rc.GetRoles(this.PortalId);
&amp;nbsp;//&amp;nbsp; myRoles
&amp;nbsp;ddlRoles.DataSource = myRoles;
&amp;nbsp;ddlRoles.DataTextField = &amp;quot;RoleName&amp;quot;;
&amp;nbsp;ddlRoles.DataValueField = &amp;quot;RoleName&amp;quot;;
&amp;nbsp;ddlRoles.DataBind();

&amp;nbsp;// ADD FIRST (NULL) ITEM
&amp;nbsp;ListItem item = new ListItem();
&amp;nbsp;item.Text = &amp;quot;-- Select Role to Assign --&amp;quot;;
&amp;nbsp;item.Value = &amp;quot;&amp;quot;;
&amp;nbsp;ddlRoles.Items.Insert(0, item);
&amp;nbsp;// REMOVE DEFAULT ROLES
&amp;nbsp;ddlRoles.Items.Remove(&amp;quot;Administrators&amp;quot;);
&amp;nbsp;ddlRoles.Items.Remove(&amp;quot;Registered Users&amp;quot;);
&amp;nbsp;ddlRoles.Items.Remove(&amp;quot;Subscribers&amp;quot;);

&amp;nbsp;// REPORTS ROLE
&amp;nbsp;ddlReportsRoles.DataSource = myRoles;
&amp;nbsp;ddlReportsRoles.DataBind();

&amp;nbsp;// ADD FIRST (NULL) ITEM
&amp;nbsp;ListItem item1 = new ListItem();
&amp;nbsp;item1.Text = &amp;quot;-- Select Role to View Reports --&amp;quot;;
&amp;nbsp;item1.Value = &amp;quot;&amp;quot;;
&amp;nbsp;ddlReportsRoles.Items.Insert(0, item1);
&amp;nbsp;// REMOVE DEFAULT ROLES
&amp;nbsp;ddlReportsRoles.Items.Remove(&amp;quot;Administrators&amp;quot;);
&amp;nbsp;ddlReportsRoles.Items.Remove(&amp;quot;Registered Users&amp;quot;);
&amp;nbsp;ddlReportsRoles.Items.Remove(&amp;quot;Subscribers&amp;quot;);

&amp;nbsp;// MERGE ROLE

&amp;nbsp;ddlMergeRoles.DataSource = myRoles;
&amp;nbsp;ddlMergeRoles.DataBind();

&amp;nbsp;// ADD FIRST (NULL) ITEM
&amp;nbsp;item1.Value = &amp;quot;Select Role to Allow Merge&amp;quot;;
&amp;nbsp;ddlMergeRoles.Items.Insert(0, item1);
&amp;nbsp;// REMOVE DEFAULT ROLES
&amp;nbsp;ddlMergeRoles.Items.Remove(&amp;quot;Administrators&amp;quot;);
&amp;nbsp;ddlMergeRoles.Items.Remove(&amp;quot;Registered Users&amp;quot;);
&amp;nbsp;ddlMergeRoles.Items.Remove(&amp;quot;Subscribers&amp;quot;);

}
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 19 Jan 2020 13:20:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:23</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/129/DNN_States_Dropdown_List#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=129</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=129&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN States Dropdown List</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/129/DNN_States_Dropdown_List</link> 
    <description>Get a list of states using the DNN Lists

public void GetDropDownListStates()

{

&amp;nbsp;try
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;// Get State Dropdown from DNN Lists

var regions = new ListController().GetListEntryInfoItems(&amp;quot;Region&amp;quot;, &amp;quot;Country.US&amp;quot;, this.PortalId);

ddlStatesRecipient.DataTextField = &amp;quot;Value&amp;quot;;
ddlStatesRecipient.DataValueField = &amp;quot;Value&amp;quot;;
ddlStatesRecipient.DataSource = regions;
ddlStatesRecipient.DataBind();
ddlStatesRecipient.Items.Insert(0, new ListItem(&amp;quot;-Select-&amp;quot;, &amp;quot;-1&amp;quot;));
ddlStatesRecipient.SelectedValue = &amp;quot;MA&amp;quot;;

&amp;nbsp;

&amp;nbsp;}

&amp;nbsp;catch (Exception ex)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;Exceptions.ProcessModuleLoadException(this, ex);
&amp;nbsp;}
&amp;nbsp;&amp;nbsp;
}
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 02 Jan 2020 12:31:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:129</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/37/DisplayName_Lookup_by_UserID#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=37</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=37&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DisplayName Lookup by UserID</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/37/DisplayName_Lookup_by_UserID</link> 
    <description>
public string CreatedByUserName
{
	get
	{
		if (createdByUserName == null)
		{
			int portalId = PortalController.Instance.GetCurrentPortalSettings().PortalId;
			UserController controller = new UserController();
			UserInfo user = controller.GetUser(portalId, createdByUserID);
			if(user != null)
			{
				createdByUserName = user.DisplayName;
			}
			else
			{
				createdByUserName = &amp;quot;Deleted User&amp;quot;;
			}
			
		}
		return createdByUserName;
	}
}

</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 26 Dec 2019 19:03:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:37</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/61/Check_If_Profile_Property_Exists#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=61</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=61&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Check If Profile Property Exists</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/61/Check_If_Profile_Property_Exists</link> 
    <description>Check if a DNN TrueFalse (bool) profile property exists and if it doesn&amp;#39;t create a new one

USE:

CheckProfilePropertyExistsTrueFalse(&amp;quot;DoNotMail&amp;quot;).ToString();

&amp;nbsp;


public string CheckProfilePropertyExistsTrueFalse(string propertyName)
{
	string value = null;

	ProfilePropertyDefinition ppd = ProfileController.GetPropertyDefinitionByName(this.PortalId, propertyName.ToString());
 //  ProfileController.AddPropertyDefinition()
	if (ppd == null)
	{
		// IT DOESN&amp;#39;T EXIST - -  CREATE IT

		DotNetNuke.Common.Lists.ListController objListCtrl = new DotNetNuke.Common.Lists.ListController();

		DotNetNuke.Entities.Profile.ProfilePropertyDefinition objDef = new DotNetNuke.Entities.Profile.ProfilePropertyDefinition();
		DotNetNuke.Entities.Profile.ProfileController objProfileController = new DotNetNuke.Entities.Profile.ProfileController();

		objDef.DataType = objListCtrl.GetListEntryInfo(&amp;quot;DataType&amp;quot;, &amp;quot;TrueFalse&amp;quot;).EntryID;
		objDef.Length = 50;
		objDef.PortalId = this.PortalId;
		objDef.PropertyName = propertyName.ToString(); // This is your property Name
		objDef.Required = false;
		objDef.DefaultValue = &amp;quot;false&amp;quot;;
		objDef.ViewOrder = -1;
		objDef.DefaultVisibility = DotNetNuke.Entities.Users.UserVisibilityMode.AdminOnly;
		objDef.Visible = true;
		objDef.PropertyCategory = &amp;quot;Donor&amp;quot;;
		objDef.ReadOnly = false;
		
		DotNetNuke.Entities.Profile.ProfileController.AddPropertyDefinition(objDef);

		value = &amp;quot;Profile Property Created for &amp;quot; + propertyName.ToString() + &amp;quot;!&amp;quot;;
	}
	else
	{
		value = &amp;quot;Profile Property Exists!&amp;quot;;

	}
	return value;
}

</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 24 Dec 2019 12:30:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:61</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/29/Updating_DnnCssInclude#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=29</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=29&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Updating DnnCssInclude</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/29/Updating_DnnCssInclude</link> 
    <description>In the designer.cs file

OLD . . .&amp;nbsp;

// protected global::DotNetNuke.UI.WebControls.DnnCssInclude DnnCssInclude1;

NEW . . .&amp;nbsp;

protected global::DotNetNuke.Web.Client.ClientResourceManagement.DnnCssInclude DnnCssInclude1;

&amp;nbsp;

&amp;nbsp;

&amp;nbsp;
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 11 Jul 2019 19:50:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:29</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/32/Return_Boolean_as_Yes_or_No#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=32</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=32&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Return Boolean as Yes or No</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/32/Return_Boolean_as_Yes_or_No</link> 
    <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public string ReturnBooleanAsYes_or_No(Boolean choice)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (choice)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (&amp;quot;Yes&amp;quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (&amp;quot;No&amp;quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sat, 02 Feb 2019 17:01:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:32</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/39/Get_DNN_Users_Role_Expiration_Date#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=39</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=39&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Get DNN Users Role Expiration Date</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/39/Get_DNN_Users_Role_Expiration_Date</link> 
    <description>DotNetNuke.Security.Roles.RoleController rolesController = new DotNetNuke.Security.Roles.RoleController();
UserRoleInfo role = rolesController.GetUserRole(0, this.UserId, rolesController.GetRoleByName(0, &amp;quot;Donor&amp;quot;).RoleID);
DateTime expiryDate = role.ExpiryDate;
lblDebug.Text = expiryDate.ToShortDateString();
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Fri, 11 May 2018 14:59:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:39</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/41/Check_if_Value_Exists_in_a_Dropdown_List#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=41</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=41&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Check if Value Exists in a Dropdown List</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/41/Check_if_Value_Exists_in_a_Dropdown_List</link> 
    <description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListItem lisource = ddlDonationSource.Items.FindByValue(item.Source);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (lisource != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // value found - select it
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddlDonationSource.SelectedValue = item.Source;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Value not found - add it and then select it
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddlDonationSource.Items.Insert(1, new ListItem(item.Source, item.Source));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddlDonationSource.SelectedValue = item.Source;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 25 Apr 2018 10:06:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:41</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/62/GridView_Trim_Long_String#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=62</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=62&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>GridView Trim Long String</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/62/GridView_Trim_Long_String</link> 
    <description>Try this . . . .
 &lt;asp:TemplateField HeaderText="Thank You Letter"&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:Label ID="lblTYLetter" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "Description").ToString().PadRight(80).Substring(0,80).TrimEnd() %&gt;'&gt;&lt;/asp:Label&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 11 May 2016 13:32:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:62</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/63/DNN_73_FillObject#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=63</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=63&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN 7.3 FillObject</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/63/DNN_73_FillObject</link> 
    <description> //public DonationTrackerInfo DonationTrackerPledgeGetPledgeByID(int pledgeID)
 //{
 // return (DonationTrackerInfo)CBO.FillObject(DataProvider.Instance().DonationTrackerPledgeGetPledgeByID(pledgeID), typeof(DonationTrackerInfo));
 //}
 public DonationTrackerInfo DonationTrackerPledgeGetPledgeByID(int pledgeID)
 {
 return CBO.FillObject&lt;DonationTrackerInfo&gt;(DataProvider.Instance().DonationTrackerPledgeGetPledgeByID(pledgeID));
 }</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 11 May 2016 10:34:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:63</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/64/Get_State_Code_By_State_Name#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=64</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=64&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Get State Code By State Name</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/64/Get_State_Code_By_State_Name</link> 
    <description> DNN now returns the long state name when using&amp;nbsp;DotNetNuke.Entities.Users.UserInfo . . . Here&#39;s an easy workaround for returning the 2 letter state code.
        public string GetStateByName(string name)
        {
            switch (name.ToUpper())
            {
                case &quot;ALABAMA&quot;:
                    return &quot;AL&quot;;

                case &quot;ALASKA&quot;:
                    return &quot;AK&quot;;

                case &quot;AMERICAN SAMOA&quot;:
                    return &quot;AS&quot;;

                case &quot;ARIZONA&quot;:
                    return &quot;AZ&quot;;

                case &quot;ARKANSAS&quot;:
                    return &quot;AR&quot;;

                case &quot;CALIFORNIA&quot;:
                    return &quot;CA&quot;;

                case &quot;COLORADO&quot;:
                    return &quot;CO&quot;;

                case &quot;CONNECTICUT&quot;:
                    return &quot;CT&quot;;

                case &quot;DELAWARE&quot;:
                    return &quot;DE&quot;;

                case &quot;DISTRICT OF COLUMBIA&quot;:
                    return &quot;DC&quot;;

                case &quot;FEDERATED STATES OF MICRONESIA&quot;:
                    return &quot;FM&quot;;

                case &quot;FLORIDA&quot;:
                    return &quot;FL&quot;;

                case &quot;GEORGIA&quot;:
                    return &quot;GA&quot;;

                case &quot;GUAM&quot;:
                    return &quot;GU&quot;;

                case &quot;HAWAII&quot;:
                    return &quot;HI&quot;;

                case &quot;IDAHO&quot;:
                    return &quot;ID&quot;;

                case &quot;ILLINOIS&quot;:
                    return &quot;IL&quot;;

                case &quot;INDIANA&quot;:
                    return &quot;IN&quot;;

                case &quot;IOWA&quot;:
                    return &quot;IA&quot;;

                case &quot;KANSAS&quot;:
                    return &quot;KS&quot;;

                case &quot;KENTUCKY&quot;:
                    return &quot;KY&quot;;

                case &quot;LOUISIANA&quot;:
                    return &quot;LA&quot;;

                case &quot;MAINE&quot;:
                    return &quot;ME&quot;;

                case &quot;MARSHALL ISLANDS&quot;:
                    return &quot;MH&quot;;

                case &quot;MARYLAND&quot;:
                    return &quot;MD&quot;;

                case &quot;MASSACHUSETTS&quot;:
                    return &quot;MA&quot;;

                case &quot;MICHIGAN&quot;:
                    return &quot;MI&quot;;

                case &quot;MINNESOTA&quot;:
                    return &quot;MN&quot;;

                case &quot;MISSISSIPPI&quot;:
                    return &quot;MS&quot;;

                case &quot;MISSOURI&quot;:
                    return &quot;MO&quot;;

                case &quot;MONTANA&quot;:
                    return &quot;MT&quot;;

                case &quot;NEBRASKA&quot;:
                    return &quot;NE&quot;;

                case &quot;NEVADA&quot;:
                    return &quot;NV&quot;;

                case &quot;NEW HAMPSHIRE&quot;:
                    return &quot;NH&quot;;

                case &quot;NEW JERSEY&quot;:
                    return &quot;NJ&quot;;

                case &quot;NEW MEXICO&quot;:
                    return &quot;NM&quot;;

                case &quot;NEW YORK&quot;:
                    return &quot;NY&quot;;

                case &quot;NORTH CAROLINA&quot;:
                    return &quot;NC&quot;;

                case &quot;NORTH DAKOTA&quot;:
                    return &quot;ND&quot;;

                case &quot;NORTHERN MARIANA ISLANDS&quot;:
                    return &quot;MP&quot;;

                case &quot;OHIO&quot;:
                    return &quot;OH&quot;;

                case &quot;OKLAHOMA&quot;:
                    return &quot;OK&quot;;

                case &quot;OREGON&quot;:
                    return &quot;OR&quot;;

                case &quot;PALAU&quot;:
                    return &quot;PW&quot;;

                case &quot;PENNSYLVANIA&quot;:
                    return &quot;PA&quot;;

                case &quot;PUERTO RICO&quot;:
                    return &quot;PR&quot;;

                case &quot;RHODE ISLAND&quot;:
                    return &quot;RI&quot;;

                case &quot;SOUTH CAROLINA&quot;:
                    return &quot;SC&quot;;

                case &quot;SOUTH DAKOTA&quot;:
                    return &quot;SD&quot;;

                case &quot;TENNESSEE&quot;:
                    return &quot;TN&quot;;

                case &quot;TEXAS&quot;:
                    return &quot;TX&quot;;

                case &quot;UTAH&quot;:
                    return &quot;UT&quot;;

                case &quot;VERMONT&quot;:
                    return &quot;VT&quot;;

                case &quot;VIRGIN ISLANDS&quot;:
                    return &quot;VI&quot;;

                case &quot;VIRGINIA&quot;:
                    return &quot;VA&quot;;

                case &quot;WASHINGTON&quot;:
                    return &quot;WA&quot;;

                case &quot;WEST VIRGINIA&quot;:
                    return &quot;WV&quot;;

                case &quot;WISCONSIN&quot;:
                    return &quot;WI&quot;;

                case &quot;WYOMING&quot;:
                    return &quot;WY&quot;;
            }

            throw new Exception(&quot;Unavailable&quot;);
        }</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 04 May 2016 11:17:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:64</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/70/Call_a_Function_from_a_GridView#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=70</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=70&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Call a Function from a GridView</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/70/Call_a_Function_from_a_GridView</link> 
    <description> &lt;asp:TemplateField HeaderText="Frequency"&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:Label ID="lblFrequency" runat="server" Text='&lt;%# GetFrequencyLookup(DataBinder.Eval(Container.DataItem, "Frequency").ToString()) %&gt;'&gt;&lt;/asp:Label&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 25 Jan 2016 13:43:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:70</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/74/Numbers_to_Words#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=74</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=74&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Numbers to Words</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/74/Numbers_to_Words</link> 
    <description>public static string NumberToWords(int number)
{
    if (number == 0)
        return "zero";

    if (number &lt; 0)
        return "minus " + NumberToWords(Math.Abs(number));

    string words = "";

    if ((number / 1000000) &gt; 0)
    {
        words += NumberToWords(number / 1000000) + " million ";
        number %= 1000000;
    }

    if ((number / 1000) &gt; 0)
    {
        words += NumberToWords(number / 1000) + " thousand ";
        number %= 1000;
    }

    if ((number / 100) &gt; 0)
    {
        words += NumberToWords(number / 100) + " hundred ";
        number %= 100;
    }

    if (number &gt; 0)
    {
        if (words != "")
            words += "and ";

        var unitsMap = new[] { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" };
        var tensMap = new[] { "zero", "ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety" };

        if (number &lt; 20)
            words += unitsMap[number];
        else
        {
            words += tensMap[number / 10];
            if ((number % 10) &gt; 0)
                words += "-" + unitsMap[number % 10];
        }
    }

    return words;
}</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 12 Aug 2015 12:17:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:74</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/80/Log_to_DNN_Event_Viewer#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=80</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=80&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Log to DNN Event Viewer</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/80/Log_to_DNN_Event_Viewer</link> 
    <description>DotNetNuke.Services.Log.EventLog.EventLogController objEventLog = new DotNetNuke.Services.Log.EventLog.EventLogController();
                objEventLog.AddLog(&quot;Sample Message&quot;, &quot;Something Interesting Happened!&quot;, PortalSettings, -1, DotNetNuke.Services.Log.EventLog.EventLogController.EventLogType.ADMIN_ALERT);
// ALTERNATIVE METHOD
EventLogController eventLog = new EventLogController();
DotNetNuke.Services.Log.EventLog.LogInfo logInfo = new LogInfo();
logInfo.LogUserID = UserId;
logInfo.LogPortalID = PortalSettings.PortalId;
logInfo.LogTypeKey = EventLogController.EventLogType.ADMIN_ALERT.ToString();
logInfo.AddProperty(&quot;Status: &quot;, _Status.ToString());
logInfo.AddProperty(&quot;KeyWordLike: &quot;, &quot;An Example&quot;);
eventLog.AddLog(logInfo);
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 26 Nov 2014 12:57:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:80</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/90/DNN_GetUsersByRoleName_for_a_Dropdown#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=90</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=90&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN GetUsersByRoleName for a Dropdown</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/90/DNN_GetUsersByRoleName_for_a_Dropdown</link> 
    <description>public void GetPreviousAgents(string _AgentRole)
{
	try
	{

		DotNetNuke.Security.Roles.RoleController objRoleController = new DotNetNuke.Security.Roles.RoleController();
		ArrayList objUserList = objRoleController.GetUsersByRoleName(DotNetNuke.Entities.Portals.PortalSettings.Current.PortalId, _AgentRole.ToString());
		int i = 0;

		foreach (DotNetNuke.Entities.Users.UserInfo objUserInfo in objUserList)
		{
			ddlPreviousAgent.Items.Insert(i, new ListItem(objUserInfo.DisplayName.ToString(),objUserInfo.Email.ToString()));
		}


	}
	catch (Exception ex)
	{
		Exceptions.ProcessModuleLoadException(this, ex);
	}
}	
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 06 Jul 2014 11:56:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:90</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/97/ServerMapPath_Usage#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=97</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=97&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Server.MapPath Usage</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/97/ServerMapPath_Usage</link> 
    <description>Server.MapPath&amp;nbsp;specifies the relative or virtual path to map&amp;nbsp;to a physical directory.

    Server.MapPath(&quot;.&quot;) returns the current physical directory of the file (e.g. aspx) being executed 
    Server.MapPath(&quot;..&quot;) returns the parent directory 
    Server.MapPath(&quot;~&quot;) returns the physical path to the root of the application 
    Server.MapPath(&quot;/&quot;) returns the physical path to the root of the domain name (is not necessarily the same as the root of the application) 
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 22 Apr 2014 12:51:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:97</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/98/DNN_Check_for_Authentication_and_Redirect_to_Login_Page#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=98</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=98&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN Check for Authentication and Redirect to Login Page</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/98/DNN_Check_for_Authentication_and_Redirect_to_Login_Page</link> 
    <description>Note that you must define a login page in the Admin/Site Settings module.

if (!IsPostBack)
{
	if (UserId == -1)
	{
		Response.Redirect(Globals.NavigateURL(this.PortalSettings.LoginTabId));
	}
	GetNewSearchURL();
	LoadGrid();
	lblDailyEmails.Text = Localization.GetString(&quot;lblDailyEmails&quot;, this.LocalResourceFile);
	SetLinks();
}
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 17 Apr 2014 10:44:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:98</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/99/Generate_QueryString_Parameters#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=99</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=99&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Generate QueryString Parameters</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/99/Generate_QueryString_Parameters</link> 
    <description>        protected static string GenerateQueryStringParameters(HttpRequest request, params string[] queryStringKeys)
        {
            StringBuilder queryString = new StringBuilder(64);
            foreach (string key in queryStringKeys)
            {
                if (request.QueryString[key] != null)
                {
                    if (queryString.Length &amp;gt; 0)
                    {
                        queryString.Append(&quot;&amp;amp;&quot;);
                    }

                    queryString.Append(key).Append(&quot;=&quot;).Append(request.QueryString[key]);
                }
            }

            return queryString.ToString();
        }

-</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 13 Apr 2014 09:34:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:99</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/101/Add_a_Space_After_a_Comma#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=101</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=101&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Add a Space After a Comma</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/101/Add_a_Space_After_a_Comma</link> 
    <description>        public string AddSpaceAfterComma(string myInput)

        {

            try


            {

                String text = myInput.ToString();


text = Regex.Replace(text, @&quot;,(?!\s)&quot;, x =&amp;gt; x + &quot; &quot;);


return text;

            }

            catch (Exception ex)

            {

                Exceptions.ProcessModuleLoadException(this, ex);


return &quot;&quot;;

            }
        
        }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sat, 25 Jan 2014 13:00:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:101</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/102/Get_the_First_Day_of_Next_Month_in_C#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=102</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=102&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Get the First Day of Next Month in C#</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/102/Get_the_First_Day_of_Next_Month_in_C</link> 
    <description>        public static DateTime GetFirstDayOfNextMonth(DateTime startDate)

        {

            if (startDate.Month == 12) // its end of year , we need to add another year to new date: 


            {

                startDate = new DateTime((startDate.Year + 1), 1, 1);

            }

            else


            {

                startDate = new DateTime(startDate.Year, (startDate.Month + 1), 1);

            }

            return startDate;

        }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Fri, 10 Jan 2014 11:40:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:102</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/109/Iterating_through_the_FileSystemObject_Collections_in_C#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=109</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=109&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Iterating through the FileSystemObject Collections in C#</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/109/Iterating_through_the_FileSystemObject_Collections_in_C</link> 
    <description>object objFSO;
SetobjFSO = Server.CreateObject("Scripting.FileSystemObject");
// Get the folder object associated with the directory
object objFolder;
SetobjFolder = objFSO.GetFolder("C:\\VitualDomains\\wwwroot");
lblOutput.Text = "The files found in "
+ objFolder.Name + ":&lt;br&gt;";
object objFile;
foreach (objFile in objFolder.Files)
{
lblOutput.Text +=
objFile.Name + "&lt;br&gt;";
}
// Clean up!
SetobjFolder = null;
SetobjFile = null;
SetobjFSO = null;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 04 Mar 2013 10:43:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:109</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/110/iDataReader_loop_to_bind_custom_values_to_a_CheckBoxList#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=110</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=110&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>iDataReader loop to bind custom values to a CheckBoxList</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/110/iDataReader_loop_to_bind_custom_values_to_a_CheckBoxList</link> 
    <description>Bind values from a custom table to a CheckBoxList bound from a DNN list
public void UpdateTrueFalseQuestions()
        {

            try
            {
                FBClientsController controller = new FBClientsController();
                FBClientsInfo item = new FBClientsInfo();

                for (int i = 0; i &lt; cblClientTrueFalseQuestions.Items.Count; i++)
                {
                        item.TfQuestion = cblClientTrueFalseQuestions.Items[i].Value.ToString();
                        item.TfAnswer = cblClientTrueFalseQuestions.Items[i].Selected;
                        item.ClientID = Int32.Parse(hidClientID.Value.ToString());
                        item.CreatedByUserID = this.UserId;
                        controller.FBClientsTrueFalseQuestions_InsertUpdate(item);
                }

                lblMessage.Text = Localization.GetString("ClientUpdateSuccessful", this.LocalResourceFile);
                lblMessage.Visible = true;

            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }

        }
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Sun, 17 Feb 2013 15:20:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:110</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/111/C_function_to_return_first_day_of_the_next_month#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=111</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=111&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>C# function to return first day of the next month</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/111/C_function_to_return_first_day_of_the_next_month</link> 
    <description>/// &lt;summary&gt;
&nbsp;/// Returns the first day of the next month.
/// &lt;/summary&gt; 
/// &lt;example&gt; 
/// i.e. If start date is 9/27/2009 it will return 10/1/2009. 
/// i.e. If date is 02/28/2001 it will return 03/01/2009 
/// i.e. Id date is 2/1/2009 it will return 2/01/2009 
/// &lt;/example&gt; 
/// &lt;remarks&gt; 
/// This method will not advace a month if the date is already on the first day of the month.
/// &lt;/remarks&gt; 
/// &lt;param name="startDate"&gt;&lt;/param&gt; 
/// &lt;returns&gt;The first day of the next month from given start date.&lt;/returns&gt; 
public static DateTime GetFirstDayOfNextMonth(DateTime startDate)
 {
if (startDate.Month == 12) // its end of year , we need to add another year to new date: 
 {
 startDate = new DateTime((startDate.Year + 1), 1, 1);
 }
else
 {
 startDate = new DateTime(startDate.Year, (startDate.Month + 1), 1);
 }
return startDate;
 }
&nbsp;
&nbsp;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 28 Jan 2013 19:21:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:111</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/113/Return_SCOPE_IDENTITY_from_a_stored_procedure_to_your_custom_DNN_module#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=113</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=113&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Return SCOPE IDENTITY from a stored procedure to your custom DNN module</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/113/Return_SCOPE_IDENTITY_from_a_stored_procedure_to_your_custom_DNN_module</link> 
    <description>Your SQL stored procedure:
INSERT INTO Invoices
(InvoiceNumber, InvoiceDate, SupplierID, ModuleID, CreatedOnDate, CreatedByUserID, PortalID)
VALUES 
(@InvoiceNumber, @InvoiceDate, @SupplierID, @ModuleId, GETDATE(), @CreatedByUserID, @PortalID)
SELECT SCOPE_IDENTITY()
Next, all the methods in your abstract data provider class and concrete data provider class should be written as functions that return an integer which is the SCOPE IDENTITY that the stored procedure returns.
//SQLDataProvider
public override int FBInvoice_Insert(string invoiceNumber, DateTime invoiceDate, int supplierID, int createdByUserID, int moduleId, int portalId)
&amp;nbsp;{
return Convert.ToInt32(SqlHelper.ExecuteScalar(connectionString, GetFullyQualifiedName(&quot;FBInvoice_Insert&quot;), invoiceNumber, invoiceDate, supplierID, createdByUserID, moduleId, portalId));
&amp;nbsp;}
// DataProvider.cs
public abstract int FBInvoice_Insert(string invoiceNumber, DateTime invoiceDate, int supplierID, int createdByUserID, int moduleId, int portalId);
// Controller.cs
public int FBInvoice_Insert(FBFoodInventoryInfo info)
{
&amp;nbsp;if (info.InvoiceNumber != string.Empty)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;return Convert.ToInt32(DataProvider.Instance().FBInvoice_Insert(info.InvoiceNumber, info.InvoiceDate, info.SupplierID, info.CreatedByUserID, info.ModuleId, info.PortalId));
&amp;nbsp;}
&amp;nbsp;else
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;return 0;
&amp;nbsp;}
}
//&amp;nbsp;Get the ID&amp;nbsp;of the newly inserted record
int MyNewID = Null.NullInteger;
MyNewID = controller.FBInvoice_Insert(item);</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 21 Jan 2013 13:06:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:113</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/112/Switch_Case#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=112</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=112&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Switch Case</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/112/Switch_Case</link> 
    <description>switch(myNumber)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;case &quot;1&quot;:&amp;nbsp;&amp;nbsp; 
// DO SOMETHING
&amp;nbsp;&amp;nbsp;break;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;case &quot;2&quot;:&amp;nbsp;&amp;nbsp; 
// DO SOMETHING
&amp;nbsp;&amp;nbsp;break;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;case &quot;3&quot;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
// DO SOMETHING&amp;nbsp;
&amp;nbsp;&amp;nbsp;break; 
&amp;nbsp;default:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;break;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 10 Jan 2013 17:18:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:112</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/114/Check_if_an_image_exists_-_substitute_missing_images#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=114</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=114&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Check if an image exists - substitute missing images</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/114/Check_if_an_image_exists_-_substitute_missing_images</link> 
    <description>public string get_image(string product_ID)
{
&nbsp;string functionReturnValue = null;
&nbsp;HttpWebRequest req = default(HttpWebRequest);
&nbsp;req = WebRequest.Create("http://www.yoursite.com/Images/products/" + product_ID + "_thumb.jpg");
&nbsp;HttpWebResponse resp = default(HttpWebResponse);
&nbsp;try {
&nbsp;&nbsp;resp = req.GetResponse();
&nbsp;&nbsp;functionReturnValue = "&lt;a href='http://www.yoursite.com/Images/products/" + product_ID.Trim() + ".jpg' target='_blank'&gt;&lt;IMG border=0 src='http://www.yoursite.com/upl_data/products/" + product_ID.Trim() + "_thumb.jpg' /&gt;&lt;/a&gt;";
&nbsp;} catch (Exception ex) {
&nbsp;&nbsp;functionReturnValue = "&lt;IMG border=0 src='images/noimage.jpg' /&gt;";
&nbsp;}
&nbsp;return functionReturnValue;
&nbsp;//return functionReturnValue;
}&nbsp;
&nbsp;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 06 Dec 2012 12:03:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:114</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/118/Regex_-_Insert_a_space_after_a_comma#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=118</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=118&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Regex - Insert a space after a comma</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/118/Regex_-_Insert_a_space_after_a_comma</link> 
    <description>String = "MyWord,AnotherWord,TheEnd"
String&nbsp;= Regex.Replace(String, "(?&lt;=,)(?!\\s)", " "); 
Value of the string is now . . . . .
String = "MyWord, AnotherWord, TheEnd"</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 23 Jul 2012 13:42:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:118</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/121/Adding_a_Header_Tag_to_a_Custom_DNN_Module#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=121</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=121&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Adding a Header Tag to a Custom DNN Module</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/121/Adding_a_Header_Tag_to_a_Custom_DNN_Module</link> 
    <description>string htmlHeaderTags = null;
LiteralControl htmlHeaderCtrl = new LiteralControl();
htmlHeaderTags = "&lt;base target=\"_self\"&gt;";
htmlHeaderCtrl.Text = htmlHeaderTags.ToString();
Page.Header.Controls.Add(htmlHeaderCtrl);</description> 
    <dc:creator></dc:creator> 
    <pubDate>Wed, 14 Mar 2012 19:21:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:121</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/122/Convert_Money_to_Double#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=122</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=122&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Convert Money to Double</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/122/Convert_Money_to_Double</link> 
    <description>Converting a textbox money field value ($1,250.00) to a double value . . . 
double MyDoubleValue = double.Parse(txtMoneyAmount.Text, NumberStyles.Currency);</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 06 Feb 2012 15:15:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:122</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/126/DNN_E-Mail_Address_Lookup#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=126</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=126&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DNN E-Mail Address Lookup</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/126/DNN_E-Mail_Address_Lookup</link> 
    <description>Check to verify if an e-mail address has been previously registered:
public bool LookupEmail(string EmailAddress)
{
&amp;nbsp;try
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;int intRecords = 0;
&amp;nbsp;&amp;nbsp;ArrayList u = new ArrayList();
&amp;nbsp;&amp;nbsp;u = UserController.GetUsersByEmail(this.PortalId, EmailAddress, 0, 1, ref intRecords);
&amp;nbsp;&amp;nbsp;if (u.Count &amp;gt; 0)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;return false;
&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp; 
&amp;nbsp;}
&amp;nbsp;catch (Exception ex)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;Exceptions.ProcessModuleLoadException(this, ex);
&amp;nbsp;&amp;nbsp;return false;
&amp;nbsp;}
}</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 19 Jan 2012 10:50:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:126</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/127/Splitting_a_FullName_field_into_a_FirstName_and_LastName#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=127</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=127&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Splitting a FullName field into a FirstName and LastName</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/127/Splitting_a_FullName_field_into_a_FirstName_and_LastName</link> 
    <description>public void NameSplit(string name)
{
&amp;nbsp;if (name.Length &amp;gt; 0)
&amp;nbsp;{
&amp;nbsp;&amp;nbsp;// Check for a comma
&amp;nbsp;&amp;nbsp;if (name.IndexOf(&quot;,&quot;) &amp;gt; 0)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;LastName = name.Substring(0, name.IndexOf(&quot;,&quot;)).Trim();
&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstName = name.Substring(name.IndexOf(&quot;,&quot;) + 1).Trim();
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;else if (name.IndexOf(&quot; &quot;) &amp;gt; 0)
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstName = name.Substring(0, name.IndexOf(&quot; &quot;)).Trim();
&amp;nbsp;&amp;nbsp;&amp;nbsp;LastName = name.Substring(name.IndexOf(&quot; &quot;) + 1).Trim();
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;FirstName = &quot;-&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;LastName = name;
&amp;nbsp;&amp;nbsp;}
&amp;nbsp;}
}</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 19 Jan 2012 10:35:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:127</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/147/valuePair_String_Split#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=147</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=147&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>valuePair String Split</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/147/valuePair_String_Split</link> 
    <description>
string emailAddress = "email1@domain.com;address2@another.com;myaccount@somewhere.com";
string[] valuePair = emailAddress.Split(new char[] { ';' });
for (int i = 0; i &lt;= valuePair.Length - 1; i++)
{
Response.Write(valuePair[i].ToString() + "&lt;br&gt;");
}

&#160;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 05 Apr 2011 18:16:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:147</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/149/Populate_a_Credit_Card_Expiration_Month_and_Year_DropDownList#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=149</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=149&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Populate a Credit Card Expiration Month and Year DropDownList</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/149/Populate_a_Credit_Card_Expiration_Month_and_Year_DropDownList</link> 
    <description>Populate a credit card expiration month DropDownList
for (int i = 1; i &lt;= 12; i++) 
{ 
&#160;&#160;&#160; DateTime month = new DateTime(2011, i, 1); 
&#160;&#160;&#160; ListItem li = new ListItem(month.ToString("MMM (MM)"), month.ToString("MM")); 
&#160;&#160;&#160; ddlExpirationDateMonth.Items.Add(li); 
} 
ddlExpirationDateMonth.Items[0].Selected = true;
//Populate the credit card expiration year DropDownList (go out&#160;7 years)&#160; 
for (int i = 0; i &lt;= 6; i++) 
{ 
&#160;&#160;&#160; String year = (DateTime.Today.Year + i).ToString(); 
&#160;&#160;&#160; ListItem li = new ListItem(year, year); 
&#160;&#160;&#160; ddlExpirationDateYear.Items.Add(li); 
} 
ddlExpirationDateYear.Items[0].Selected = true;</description> 
    <dc:creator></dc:creator> 
    <pubDate>Fri, 01 Apr 2011 13:13:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:149</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/150/DirectoryInfo_Object_GetFiles_-_List_Files_in_Folder#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=150</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=150&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>DirectoryInfo Object GetFiles() - List Files in Folder</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/150/DirectoryInfo_Object_GetFiles_-_List_Files_in_Folder</link> 
    <description>List files in a folder . . .
&#160;&#160;&#160; private void ListFiles()
&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; DirectoryInfo di = new DirectoryInfo("C:/VirtualDomains/www.xxx.com/htdocs/PDF");
&#160;&#160;&#160;&#160;&#160;&#160;&#160; FileInfo[] rgFiles = di.GetFiles("*.PDF");
&#160;&#160;&#160;&#160;&#160;&#160;&#160; foreach (FileInfo fi in rgFiles)
&#160;&#160;&#160;&#160;&#160;&#160;&#160; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; FileList += ("&lt;br&gt;&lt;a href=/PDF/" + fi.Name + "&gt;" + fi.Name + "&lt;/a&gt;");
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160;&#160;&#160;&#160;&#160; lblFiles.Text = FileList.ToString();
&#160;&#160;&#160; }</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 29 Mar 2011 14:51:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:150</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/300/How_to_replace_carriage_return_with_br#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=300</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=300&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>How to replace carriage return with &lt;br&gt;</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/300/How_to_replace_carriage_return_with_br</link> 
    <description>Public string ReplaceWithBR(string target)
{&#160; 
Regex regex = new Regex(@"(\r\n|\r|\n)+");
string newText = regex.Replace(target, "&lt;br /&gt;");
}</description> 
    <dc:creator></dc:creator> 
    <pubDate>Fri, 27 Aug 2010 13:27:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:300</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/306/Date_and_Time#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=306</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=306&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Date and Time</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/306/Date_and_Time</link> 
    <description>Get the date and time in C#
&amp;#160;
vDate = Convert.ToString(System.DateTime.Today.Date.ToShortDateString());
vTime = Convert.ToString(System.DateTime.Now.ToShortTimeString());</description> 
    <dc:creator></dc:creator> 
    <pubDate>Mon, 19 Apr 2010 09:25:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:306</guid> 
    
</item>

    </channel>
</rss>